#include <stdio.h>
int main()
{
    char str1[] = "hello";
    printf("%p \n", str1);

    char *p1 = "hello"; // 常量不能被赋值  "hello"是常量
    printf("%p \n", p1);

    printf("============\n");
    char *strs1[3] = {"hello", "wwww", "ssss"};

    char strs2[3][32] = {"hello", "wwww", "ssss"};

    for (size_t i = 0; i < 3; i++)
    {
        printf("strs1[%d]=%s\n", i, strs1[i]);
        printf("strs2[%d]=%s\n", i, strs2[i]);
    }

    printf("%d %d\n", sizeof(strs1), sizeof(strs2)); // strs1  3*8(char*)

    strs2[0][0] = 'H';
    printf("str2[0] %s\n", strs2[0]);

    // strs1[0][0] = 'H';    //常量不能被赋值
}